package initializer;

import database.mediator.MediatorInterface;

public class InitialPrecisionInitializer implements Initializer {

	public void Initialize(MediatorInterface mI) {
		
		double[] tp = {182,64,23,29,144,13,17,23,12,10,8,24,7,9,7,8,7,7,4,4};
		double[] fp = {3,6,1,10,11,2,0,10,0,1,0,3,1,1,0,3,1,2,0,0};
		double[] initial = new double[tp.length];
		long[] dbs = {2,3};
		long[] queries = {11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30};
		
		
		
		for (int i = 0; i < initial.length; i++) {
			initial[i] = (tp[i])/(tp[i]+fp[i]);
		}
		
		for(int db=0;db<dbs.length;db++){
			
			for(int q=0;q<queries.length;q++){
				mI.writeInitialPrecision(queries[q], dbs[db], initial[q]);
			}
		}
		
	}

}
